AM_CFLAGS = -I$(top_srcdir)/include
AM_LDFLAGS = -lncurses -lpthread
COMMON_FILES = $(top_srcdir)/src/test/test_base.c test_bin_tree.c $(top_srcdir)/src/safe_alloc.c $(top_srcdir)/src/errors.c \
	$(top_srcdir)/include/test/test_base.h $(top_srcdir)/include/test/test_bin_tree.h $(top_srcdir)/include/ds.h
COMMON_LIBS = $(top_srcdir)/src/trees/libtrees.a

if LIBDS_DEBUG
AM_CFLAGS += -g -DMEM_DEBUG
endif

bin_PROGRAMS = rnd_tree_test
rnd_tree_test_SOURCES = rnd_tree_test.c $(COMMON_FILES)
rnd_tree_test_LDADD = $(COMMON_LIBS)
